package wiki.xsx.jdbc;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @Descript
 * @Author xsx
 * @Date 2017/11/11
 */
public class Sort {
    public enum SortType{
        ASC,DESC
    }
    private Map<String, SortType> sortMap = new LinkedHashMap<>();

    public Sort setSort(String key, SortType type){
        this.sortMap.put(key, type);
        return this;
    }

    protected Map<String, SortType> getSort(){
        return this.sortMap;
    }
}
